<template>
  <div>
    <div class="header">222</div>
    <el-card class="box">
      <!-- 新增试题按钮 -->
      <el-row class="tianjia-shiti">
        <el-button type="success" size="medium  ">
          <i class="el-icon-edit"></i>
          新增试题
        </el-button>
      </el-row>
      <!-- 新增试题按钮 -->
      <!-- 搜索区域 -->
      <el-form>
        <el-row>
          <el-col :span="6">
            <el-form-item label="学科">
              <el-select v-model="formInline.region" placeholder="请选择">
                <el-option label="区域一" value="shanghai"></el-option>
                <el-option label="区域二" value="beijing"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="二级目录">
              <el-select v-model="formInline.region" placeholder="请选择">
                <el-option label="区域一" value="shanghai"></el-option>
                <el-option label="区域二" value="beijing"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="标签">
              <el-select v-model="formInline.region" placeholder="请选择">
                <el-option label="区域一" value="shanghai"></el-option>
                <el-option label="区域二" value="beijing"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="关键字">
              <el-input></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="试题类型">
              <el-select v-model="formInline.region" placeholder="请选择">
                <el-option label="区域一" value="shanghai"></el-option>
                <el-option label="区域二" value="beijing"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="难度">
              <el-select v-model="formInline.region" placeholder="请选择">
                <el-option label="区域一" value="shanghai"></el-option>
                <el-option label="区域二" value="beijing"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="方向">
              <el-select v-model="formInline.region" placeholder="请选择">
                <el-option label="区域一" value="shanghai"></el-option>
                <el-option label="区域二" value="beijing"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="录入人">
              <el-select v-model="formInline.region" placeholder="请选择">
                <el-option label="区域一" value="shanghai"></el-option>
                <el-option label="区域二" value="beijing"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="题目备注">
              <el-input></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="企业简称">
              <el-input></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="城市">
              <el-col :span="12">
                <el-select v-model="formInline.user" placeholder="请选择">
                  <el-option label="区域一" value="shanghai1"></el-option>
                  <el-option label="区域二" value="beijing1"></el-option>
                </el-select>
              </el-col>
              <el-col :span="12">
                <el-select v-model="formInline.user" placeholder="请选择">
                  <el-option label="区域一" value="shanghai1"></el-option>
                  <el-option label="区域二" value="beijing1"></el-option>
                </el-select>
              </el-col>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <div class="kaoyou">
              <el-button size="mini">清除</el-button>
              <el-button type="primary" size="mini">搜索</el-button>
            </div>
          </el-col>
        </el-row>
      </el-form>
      <el-row class="el-alert ">
        <i class="el-icon-info"></i>
        <span>数据一共有七条</span>
      </el-row>
      <!-- 搜索区域 -->
      <!-- 显示区域 -->
      <el-table :data="tableData" border style="width: 100%">
        <el-table-column prop="date" label="试题编号" width="150"></el-table-column>
        <el-table-column prop="date" label="学科" width="150"></el-table-column>
        <el-table-column prop="date" label="目录" width="150"></el-table-column>
        <el-table-column prop="name" label="题型" width="130"></el-table-column>
        <el-table-column prop="question" label="题干" width="300"></el-table-column>
        <el-table-column prop="name" label="录入时间" width="130"></el-table-column>
        <el-table-column prop="name" label="难度" width="130"></el-table-column>
        <el-table-column prop="name" label="录入人" width="130"></el-table-column>
        <el-table-column prop="name" label="审核状态" width="130"></el-table-column>
        <el-table-column prop="name" label="审核意见" width="130"></el-table-column>
        <el-table-column prop="name" label="审核人" width="130"></el-table-column>
        <el-table-column prop="name" label="发布状态" width="130"></el-table-column>
        <el-table-column fixed="right" label="操作" width="200">
          <template >
            <el-button  type="text" size="small">查看</el-button>
            <el-button type="text" size="small">编辑</el-button>
            <el-button type="text" size="small">编辑</el-button>
            <el-button type="text" size="small">编辑</el-button>
            <el-button type="text" size="small">编辑</el-button>
          </template>
        </el-table-column>
      </el-table>
      <!-- 显示区域 -->
      <!-- 分页区 -->
      <!-- <el-pagination background :page-size="[5, 10, 20, 50]" :total="20"> </el-pagination> -->
      <div class="block">
        <el-pagination
          :page-sizes="[5, 10, 15, 20]"
          :page-size="3"
          layout="total, sizes, prev, pager, next, jumper"
          :total="20"
          background
        ></el-pagination>
      </div>
      <!-- 分页区 -->
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'basic_question-bank',
  data() {
    return {
      formInline: {
        user: '',
        region: ''
      },
      tableData: [
        {
          date: '2016-05-02',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        },
        {
          date: '2016-05-04',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1517 弄',
          zip: 200333
        },
        {
          date: '2016-05-01',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1519 弄',
          zip: 200333
        },
        {
          date: '2016-05-03',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1516 弄',
          zip: 200333
        }
      ]
    }
  }
}
</script>

<style lang="less" scoped>
.header {
  height: 34px;
  width: 100%;
  background-color: #fff;
}
.box {
  margin: 20px;
  .tianjia-shiti {
    margin-bottom: 15px;
  }
}
/deep/.el-form-item__content {
  display: flex;
  flex: 1;
  flex-direction: row-reverse;
}
/deep/.el-input--suffix {
  width: 100%;
}
/deep/.el-form-item__label {
  width: 80px;
  text-align: right;
  vertical-align: middle;
  float: left;
  font-size: 14px;
  color: #606266;
  line-height: 40px;
  padding: 0 12px 0 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.tianjia-shiti {
  display: flex;
  justify-content: flex-end;
}
.el-select {
  width: 100%;
}
.kaoyou {
  display: flex;
  justify-content: flex-end;
}
.el-alert {
  background-color: #f4f4f5;
  color: #909399;
  .el-icon-info:before {
    margin-right: 10px;
  }
}
/deep/.is-circle {
  font-size: 11px;
}
.el-pagination {
  float: right;
}
</style>
